package com.bytz.modules.cms.product.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bytz.common.system.base.service.ICrudService;
import com.bytz.modules.cms.product.entity.ProductHierarchy;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface IAdminProductHierarchyService extends ICrudService<ProductHierarchy, ProductHierarchy> {
    /**
     * 分页查询
     */
    IPage<ProductHierarchy> queryPage(Page<ProductHierarchy> page, ProductHierarchy productHierarchy, Map<String, String[]> parameterMap);

    /**
     * 导出excel
     */
    void export(ProductHierarchy productHierarchy, Map<String, String[]> parameterMap, HttpServletResponse response) throws IOException;

    /**
     * excel导入
     */
    List<ProductHierarchy> importExcel(List<ProductHierarchy> models);
}
